<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="200dp"
    android:layout_height="200dp"
    android:layout_margin="@dimen/_6sdp"
    android:background="@drawable/collection_item"
    android:padding="@dimen/_6sdp">

    <ImageView
        android:id="@+id/collectionIconImageView"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:contentDescription="@string/profile_collection_icon"
        android:src="@drawable/ic_favorite"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:tint="?colorPrimary" />

    <ImageButton
        android:id="@+id/removeCollectionButton"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@null"
        android:scaleType="fitCenter"
        android:src="@drawable/ic_close"
        android:visibility="gone"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/nameTextView"
        style="@style/film_category_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:ellipsize="end"
        android:maxLines="3"
        android:textAlignment="center"
        app:layout_constraintEnd_toEndOf="@id/collectionIconImageView"
        app:layout_constraintStart_toStartOf="@id/collectionIconImageView"
        app:layout_constraintTop_toBottomOf="@id/collectionIconImageView"
        tools:text="@tools:sample/lorem/random" />

    <TextView
        android:id="@+id/countTextView"
        style="@style/profile_collection_item_count"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:maxLines="1"
        app:layout_constraintEnd_toEndOf="@id/nameTextView"
        app:layout_constraintStart_toStartOf="@id/nameTextView"
        app:layout_constraintTop_toBottomOf="@id/nameTextView" />
</androidx.constraintlayout.widget.ConstraintLayout>